<template>
  <div style="background:#2b76f6;">
    <div class="configuration">
      <van-button style="float:right;" @click="signOut()" color="linear-gradient(to right, #ff6034, #ee0a24)">
        退出
      </van-button>
    </div>
    <div class="content">
      <div class="title">社区人员信息采集</div>
      <div class="title fs">SHEQURENYUANXINXICAIJI</div>
      <!-- <div class="btn" @click="goHome(1)">备案登记</div> -->
      <!-- <div class="btn" @click="goHome(2)" style="background:#f4af4d;">管控登记</div> -->
      <div class="btn" @click="goHome(3)" style="background:rgb(91 62 21);">社区登记</div>

    </div>
  </div>
</template>

<script>
import router from '../../router/index'
export default {
  data() {
    return {
    }
  },
  methods: {
    goHome(i) {
      let username = localStorage.getItem('username')
      if (username == 'LM40010') {
        this.$router.push({ name: 'home', query: { id: i } })
      } else {
        this.$router.push({ name: 'home2', query: { id: i } })
      }
    },
    signOut(){
      localStorage.removeItem('username')
        localStorage.removeItem('k')
        router.push('/')
    }
  }
}
</script>
<style lang="less" scoped>
.configuration {
  background: url('../../assets/images/t-b.png')no-repeat;
  background-size: 100% 100%;
  height: 30vh;
}

.content {
  background: white;
  height: calc(60vh - 80px);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  padding: 40px;

  .btn {
    height: 200px;
    background: #408cf7;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 30px;
  }

  .title {
    font-family: "Source Han Sans CN Bold";
    font-weight: bold;
    font-size: 55px;
    text-align: left;
    color: #0042b0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    text-align: center;
  }

  .fs {
    font-size: 28px;
    margin-bottom: 100px;
  }
}

/deep/.van-button--block {
  padding: 60px !important;
}
</style>
